<template>
	<view class="m16"><u-parse :content="getArticle" @preview="preview" @navigate="navigate"></u-parse></view>
</template>

<script>
import marked from 'marked'
import uParse from './m-parse/parse.vue';
export default {
	props:{
		article:String,
	},
	components: {
		uParse
	},
	computed: {
		getArticle() {
			return marked(this.article)
		}
	},
	
	methods: {
		preview(src, e) {
			// do something
		},
		navigate(href, e) {
			// do something
		}
	}
};
</script>

<style>

</style>
